#include "stdafx.h"
#include "qtrial.h"

Qtrial::Qtrial(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);
}

Qtrial::~Qtrial()
{

}

void Qtrial::paintEvent( QPaintEvent * )
{
	QPainter p(this);
	p.fillRect(QRect(0,0,width(),height()) ,QBrush(Qt::transparent) );
	p.drawText(QRectF(0, 0, width(), height()), Qt::AlignCenter, QStringLiteral("QWidget"));
	p.setBrush(QBrush(Qt::green));
	p.drawLine(100,100,200,200);
}
